﻿@model Webcar.Entitys.sys_dept
@using (Ajax.BeginForm("EditDeptSave", "System",
    new AjaxOptions
    {
        HttpMethod = "POST",
        UpdateTargetId = "error-content",
        InsertionMode = InsertionMode.Replace
    }))
{
    @Html.AntiForgeryToken()
    <div id="edit-car">
        @Html.HiddenFor(a => a.deptcode)
        @Html.HiddenFor(a => a.super_dept)
        <table class="edit-table" style="width:100%">
            <tr>
                <td style="width: 80px; text-align: right">*部门名称：</td>
                <td style="width: 200px">@Html.TextBoxFor(a => a.deptname, new { @style = "width: 100%;" })</td>
            </tr>
            <tr>
                <td style="width: 80px; text-align: right">是否启用：</td>
                <td style="width: 200px">@Html.CheckBoxFor(a => a.IsUse, new { @style = "width: 100%;" })</td>
            </tr>
            
        </table>
        <br />
        @Html.ErrorLabel("error-content")

    </div>
    <div style="width:100%; text-align:right;">
        <input type="submit" class="webcar-button" value="保存" />
        <input type="button" class="webcar-button" value="取消" onclick="pcModalMode.Hide();" />

    </div>
}

